Added security to admin and login form functionality