user login and app connect