write the sign in/out