Login and 404 handlers added.