Hash password on registration