add error page and images,modify logout code