change the logic of switching user role in sign up form