Updated user controller with more comments and removed debugging messages