basic auth implementation. Not connected to front end
Adding front-end changes to use back-end (removing mocks)