Login in layout working