I need to implement a conditional warning message before submit