fixed 'RangeError: Maximum call stack size exceeded' error in login