working version with keys hidden and login