rewrite login and register page

Signed-off-by: August Yip <augustyip@gmail.com>