Fixed some of the authentication logic
Created a settings page and class