Rewrote View::viewError($id) as exceptions, moved login code to index, removed redundant from index