Bug of authentication in layout