user models tests and changes to routing for login