Added validation to width and length fields in location.rb