Bug fix: Don't render application layout if registration fails