trying to fix login json bug and scrolling bug