integrated the sign in and sign out conditionals