Add forget password function & fix some bugs

1. Fix user permission of login & register function.
2. Updata  autoload.
3. Fix forget_password page can't register user.