Forgot self in error handler
Now returns correct error messages
Removed redundtant debug printout
Added debug printout
Added flash at error from backend