Returns -1 for no user id