first steps at login logic