got login working with encryption