Update: Application transitions to the correct route if a user is already logged in. Does not always redirect to login anymore
Update: Minor refactorisation + bug fix inside AJAX (self instead of this)