Added newdata array to create account to prevent unhashed password entering database