Login now works and in main view the links are correctly shown.