add function to set authentication methods for session