added correct validations for paperclip