modified events controller so that it doesn't hit the db until there are no errors
Merge pull request #3 from siruguri/master

modified events controller so that it doesn't hit the db until there are...