moved login display from index to layout