working login w/ layout