Fix conditions of buildinging UI adding user to role