User authentication.

Put back the user authentication code.