Fix class error
Add basic authorization