Fixed issue with edit user method in controller