updated user registration and form helper