remove irrelevent code from login-routes