sign_out method rewritten