Added user authenticate method