correct some misspell
register and login function update