completed the user authentication part