bug fix in onscroll js and user registration