add user and problem function