Fixing broken login