Add problem handling and fix deleting of user