Fixed Redirect loop after successfully changing an expired password