fixed some login bugs, synced header across all files