Fixes mobile template issue when login forces thought ssl