support for login and registering pi