handle all exceptions in reg controller methods