Fixed a bug with admin login