adding rquired to attributes