Tests on validation and flash messages were added