BB doesn't login with the GUI after a terminal passwd change !

I don’t know why it happen, after I’ve changed the root password, the GUI doesn’t login, I’ve tried to change the autologin function, but same , thus I’ve restored my backup I’ve done 2 days ago ! any guide to avoid any ?