fix layout login, add login + logout controller