added registration and login

should be able to register and login now. to change the database just
edit the config.php.