fixed protected attibutes error and updated user params