login conditionals set up