Adding additional form validation to both online and offline