added errors array and an password strength error variable to stop the script when password doesn't meet requirements