Fix login for admin mode