database connected, login compleated and ajax fixed localy