Basic authentication and some DI work