Device authentication and user login management