Misspelling error
I used 'validate' instead of 'validates'