Registration and Login functaionlity is complete. Working on isAuthenticated middleware to restrict access to pages.
Basic Authentication now complete. Can register, and login using ajax. Authentication is checked using a middleware function that is located in the Authentication controller.
Fix for redirect on registration.