if (@user) json.status true json.extract! @user, :id else json.status false json.message "Logout Failed." end