integrate login with the other pages