fix 'loosing' profile data if validation fails