Implement basic authentication with sign in