admin framework and login logic