moved login-feature into separate files