changes date select to text field to retain value after validation error