Completed user authentication. Added error messages for authentication