creating admin user, login user functionality