Added authentication test and an authorize button to the UI