trying to get if register/login section exsits on document ready