Made significant progress on parse tree constructor. Also fixed handling unsuccessful logins.