Geting vars,logining in and returning name is works perfectly