Fix for the login route not working