fix login reset queries for survey