Fixed login and drag and drop bugs