- Modified getNudges function to pass users.id to front end.