fixes a weird isue where toolbar login is not possible on mobile devices