generated sessions and created log in