Online face detection and user authentication