fixed issue with loging and register