Added login functionality to admin entry page