Fix/js error at login