Fixed @redirect_signedin raising AttributeError (closes #7).