Added a next_task endpoint for the user model