dashboard redirect fix when admin is logged in