Added validation to models and listened to invalid event in views