Add error pages, improve login