completes user authentication