add "addUser" function

Created the addUser function in the functions page