loggedin fix
logout fix
undefined check for recommend