Added login for admin functions.