making the authentication processes work