Cleans and handles basic auth