Updates to Adding Users to DB and Login.php

added logic for adding users to the db (not complete) and made some
minor changes in login.php to aid with the process.