Bugfixes; encrypt password; check for username when adding