finially completed the user auth and autentication