Added AJAX request to login page, modified session data, added some routes for profile, many fixes to login process