added mysql login check to main page