Added errors to login and register views. Fixed a couple of event replated bugs