allows admin to login using Database class