fixed sign in, sign out, and sign up function