Fix login popup being displayed under trailer. (#596)

Attempts to fix #596