Fixed first time document opening. Login redirect to documents