Made error page more reliable. Setting up initial layout for users and projects.