preparing the user authentication