user add function works on exceptions
merged sharloks code files for both controllers