@user updated to @current_user and logout working