Modified database source file.
Created a filter to prevent people directly access register-authorized pages by using URLs.
Added basic logic for user login and logout.