add user function now works