Removed redundant code for admin logins