implement add user function in backend