fixed js typo which was preventing the login from working correctly