fixes mistakes in authorization find_or_create method