added basic authorization

added basic authorization to server and app