Validations in rails added