Added account registration and encryption for account password