bug fixes: making sure user id exists