CHANGED:user authenticate function testing