(Had tested with $_GET but forgot to change back to $_POST. Registration and authentication have been drafted and tested, and they should be working as expected.)