added rails validations