made login actually work and added most essential functions to ajax.php
Merge branch 'master' of https://github.com/eTendance/CustomCupcakes