deleted factory pattern and added form to login.php
added html purifier and database connection