implemented login functionality for admin interface