Hide existing modals when creating login view to prevent overlapping modals