Set and get login pattern.