Login and Account Settings.

1. Finished the login function of index.php.
2. Add main.php for account settings.