Fix for admin api login