Set login and authentication method