giant block - currently trying to get LOG IN to work - all eslse OK so far bar some missing templates for chains