add error pages and user login