use blank? instead of empty? on text_field to make it work on Integers