add the registration verification by js
now it can check the uniqueness of registration email
now logging in would store user's email in cookies
it can log in
now it can 'remember me'
now it can log out