Login Improvement

When the user login/register, the username is set to cookies. When the
user register, a email will be sent to lukezeng@live.com. When the user
logout, the cookies will expire.