Begin login and adding templates top and bottom