fix a bug with the condition when adding a user 

fix a bug with the condition when adding a user and when selcting the correct user