Created a basic auth system. Needs some refining but satisfactory for testing.