Added user authentication and login