added validations to todo items and flash alerts to application.css