removed unneeded code from tasks and users controllers