Rectify signin error in redirect_back_or helper function