added user authentication with login