Using new function search_by_name(name) & search_by_session(session[:session_id])