More work on user registration, logins and resets