fixed login problem with chrome 37+