added user authentication.