breaking and improving login