updating mysql statements
fixed login