changed javascript and view for membership registration