fixed bugs with empty userID

Backend now remains unchanged when userID is empty