added localhost to allowed host in settings