Added user authentication method