user registration fixed by brian