changed category validations and added urls to jbuilder