uppdated admin page and login function