Adding required on code field