Added basic authentication and finished the app