Array flattened for user login