finalizing the header and login