added integer check for user-id