Set cursor after validation failure

review957002