fixing login issues and iOS viewport scale issues