added if condition around authorized_keys block