Fixed submit behaviour in forms.