checking for users with the same name. check for bugs