Fix password confirmation and encryption