Nullify school fields when user is not student anymore
Currently, if the users registers their profile as a student and later edits it marking they are not student anymore, school_type
and school
remain untouched.
That means that next time the user sees their profile, they will see the school fields even though they are not student anymore.
One solution is to pass the radio button value to the controller when the user edits their profile. If the value is no
then we update their school field with null
.