Fix for login