added validation to apartmentadform