fixing validation error for paperclip