fixed charCodeAt, password input and user creation