Added login system

Added an admin login system
Controlled access to admin functions