Updates. shows what user is searching for. checks for valid login