Fix pageLogin() to output content instead of echo