change nil? to blank? in new_record?