Added security features to admin page and functions properly.