added the beginning of user authentication