adding required validation