More progress on login and header stuff