setting up basic credentials and login