Fixing step three to step four
Adding validation coffeescript
caught and fixed a bug where error was not being reset correctly on subsequent loops