Write function to get a user by their primary key
Update signal handler function