add loading animation when logged in