changed javascript and other functions on user registration page