Fixed bug with delete user function in controller and model.