login working with scanner