Added rails validations