fixed conditional in user id