Created login functionality for an admin panel.