Fixed loader visibility when login fails