added validation steps to the location object