Minor changet to hide keyboad when validation fails