Updated to handle admin login.