Implemented working user authentication.