login logic with admin