fix login and register...