added user registration, login, and admin protection of admin area