edit register and login function, but it's not complete.