added js form validation with email uniqueness