backend structure changes, main page now process a complete login