clean up UI, fix password encryption, unit tests