set permissions
add error pages
fix log out
fix permissions