Sign in and sign out working properly