cleaning for ratchet

some fix
 -bug fixed on login action (