user authenticate method added