add new users function working completely