Fixed a bug on admin login