registration form only sendable if no js errors occured