changed gitignore and refactored php files for multiple http authentication logins