validate empty fields and colour added