Fixed login form redirect and layouts for logins