EDITED register.html & add_reg.php: arranged code to be more readable, and renamed some variables to be more meaningful. ADDED to add_reg.php: strip/trim whitespace around input strings, check if they are empty strings and if the variable exists, check for mysql errors, and display feedback and error messages.