basic authentication system fixes #4