fixing users controller bugs