Minor cleanup of login JS