Added validation to position create and edit