Added login functionality to admin panel