update login, add registration