Login route fixes