Refactored by using validates_presence_of instead of presence hash.