Fixing login JS