Finishes user authentication.