upate

1. fix some bugs in register and login
2. save login info after login succeeded
3. add ui layout
4. add Home, Contacts, Setting