encoding login and password