Fix JavaScript of login page of mobile version