error handling in question profile controller