validations and flash messages as per pillphone admin document