changes in login method, attempt to fix scrolling in iOS