Javascript login to disable encryption fields