implements add-user fucntionality