When logging out and then logging back in, there is sometimes an error when registering flash view, which says that it can't register 2 views with the same id. We don't need to use id here, so I just changed id to class