Fixed a bug where the admin can't log in