implemented function of login for administrator